package product

import "github.com/gin-gonic/gin"

type ProductBaseController struct {
}

func (con ProductBaseController) success(ctx *gin.Context) {
	ctx.JSON(200, gin.H{
		"code":    200,
		"message": "请求成功",
		"success": true,
	})
}

func (con ProductBaseController) error(ctx *gin.Context) {
	ctx.JSON(200, gin.H{
		"code":    500,
		"message": "请求失败",
		"success": false,
	})
}
